﻿using System;
using System.Collections.Generic;

namespace Novel.Server.Models;

public partial class Novel
{
    public int NovelId { get; set; }

    public string Title { get; set; } = null!;

    public int AuthorId { get; set; }

    public DateTime CreatedAt { get; set; }

    public DateTime UpdatedAt { get; set; }

    public bool IsDeleted { get; set; }

    public Guid? Cover { get; set; }

    public virtual User Author { get; set; } = null!;

    public virtual ICollection<Chapter> Chapters { get; set; } = new List<Chapter>();

    public virtual Image? CoverNavigation { get; set; }

    public virtual ICollection<Favorite> Favorites { get; set; } = new List<Favorite>();

    public virtual ICollection<Tag> Tags { get; set; } = new List<Tag>();
}
